package com.wkk.websocket.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author : WangKeKe
 * @date : 2020/9/30 18:24
 * Description : 公告历史
 */

@Data
@Accessors(chain = true)
@ApiModel(description = "公告历史")
public class AnnouncementHistoryDto {

    @ApiModelProperty(value = "公告ID")
    private String id;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "公告发送时间")
    private Date createTime;

    @ApiModelProperty(value = "发送者ID")
    private String userId;

    @ApiModelProperty(value = "发送者昵称")
    private String nickname;

    @ApiModelProperty(value = "发送者头像")
    private String headUrl;
}
